package com.accenture.adf.newcodington.module10.sample;

/**
 * Topic: Inheritance
 * 
 * Instructions :
 * 
 * 	The Vehicle class is to be created and updated in the participant folder by 
 * 	the participants during the TryIt tasks for the module.
 * 	This class is a solution for the task
 *
 */
public class Vehicle {
	
	// attributes of a Vehicle
	private int doors;
	private int seats;
	private int wheels;
	
	// default constructor
	Vehicle(){
		doors = 0;
		seats = 0;
		wheels = 0;
	}
	
	// constructor with parameters
	Vehicle(int d, int s, int w){
		doors = d;
		seats = s;
		wheels = w;
	}

	// drive method implemented
	public void drive()
	{
		System.out.println(" Driving Vehicle");
	}

	/**
	 * @return the doors
	 */
	public int getDoors() {
		return doors;
	}

	/**
	 * @param doors the doors to set
	 */
	public void setDoors(int doors) {
		this.doors = doors;
	}

	/**
	 * @return the seats
	 */
	public int getSeats() {
		return seats;
	}

	/**
	 * @param seats the seats to set
	 */
	public void setSeats(int seats) {
		this.seats = seats;
	}

	/**
	 * @return the wheels
	 */
	public int getWheels() {
		return wheels;
	}

	/**
	 * @param wheels the wheels to set
	 */
	public void setWheels(int wheels) {
		this.wheels = wheels;
	}
	
}
